home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1996 / MacHack 1996.toast / Hacks / Hacks ’92 / DylanTalk / DylanTalk Source / DylanTalkEqu.a < prev    next >
Encoding:
Text File  |  1992-06-18  |  1.4 KB  |  40 lines  |  [TEXT/MPS ]

  1. kShowHideTrapWord        equ    $108
  2. kNewDialogTrapWord        equ    $17D
  3. kSystemTaskTrapWord        equ    $1B4
  4. kSystemMenuTrapWord        equ    $1B5
  5. kTrackControlTrapWord    equ    $168
  6. kDialogSelectTrapWord    equ    $180
  7. kHiliteControlTrapWord    equ    $15D
  8.  
  9. kDialogKind            equ    2
  10. kNumCachedDialogs    equ    5
  11.  
  12. gestaltDylanTalk    equ    'DTlk'
  13.  
  14. kDylanTalkMenuID    equ    -21386                    ; Resource ID of DylanTalk menu
  15. kDylanTalkIconID    equ    128                        ; Resource ID of DylanTalk icons
  16.  
  17.                     Macro
  18.                     PatchHeader &oldTrapAddress
  19.                         String AsIs
  20.                         dc.l    'DTlk'
  21.                         String Pascal
  22.                         &oldTrapAddress: jmp    $12345678
  23.                     EndM
  24.                     
  25. DylanTalkGlobals    Record    0
  26. openDialogs            ds.l    kNumCachedDialogs    ; Number of allowed nested dialogs
  27. aboutPicture        ds.l    1                    ; Handle to DylanTalk about picture
  28. firstDialogString    ds.l    1                    ; Handle to the string that we’ll say
  29. wordQueue            ds.l    1                    ; list of handles to be released
  30. dylanSndChannel        ds.l    1                    ; Our sound channel
  31. dylanTalkIcons        ds.l    1                    ; Handle to icon suite for menu
  32. preferencesDirID    ds.l    1                    ; Directory ID of DylanTalk Prefences folder
  33. preferencesFileName    ds.l    1                    ; Handle to name of preferences file
  34. preferencesVRefNum    ds.w    1                    ; Volume of DylanTalk Preferences
  35. personalityFile        ds.w    1                    ; RefNum of current personality file
  36. personalityItem        ds.w    1                    ; Item number in menu of current personality
  37. playingControlSound    ds.w    1                    ; True if we’re speaking the title of a button.
  38. globalSize            equ        *
  39.                     EndR
  40.